From 5b52f6fe87f0a2bccf5a3ef41b356ce7d4beafd7 Mon Sep 17 00:00:00 2001 From: robertl Date: Thu, 6 May 2004 13:26:45 +0000 Subject: [PATCH] Fix mem corruption when using get_posn. --- gpsbabel/garmin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpsbabel/garmin.c b/gpsbabel/garmin.c index 802e96338..43d536ebd 100644 --- a/gpsbabel/garmin.c +++ b/gpsbabel/garmin.c @@ -155,7 +155,7 @@ waypt_read(void) waypoint *wpt = waypt_new(); wpt->latitude = gps_save_lat; wpt->longitude = gps_save_lon; - wpt->shortname = "Position"; + wpt->shortname = xstrdup("Position"); waypt_add(wpt); return; } -- 2.30.2